﻿<!DOCTYPE html>
<html>
<head>
    <title>文件上传</title>
    <meta charset="utf-8" />
</head>
<body>
    <h3>文件上传</h3>
    <hr>
    <form action="http://localhost:5000/api/File/File/Upload" method="post" enctype="multipart/form-data">
        <table>
            <tr>
                <td>
                    <input type="file" id="formFileCollection" name="formFileCollection" multiple />
                </td>
                <td>
                    <input type="file" id="formFileCollection2" name="formFileCollection2" multiple />
                </td>
            </tr>
            <tr>
                <td>
                    <input type="submit" value="提交" />
                </td>
            </tr>
        </table>
    </form>
    <hr>
    <h4>文件下载</h4>
    <form action="http://localhost:18100/api/Download/Common?filePath=/File/Upload/Common/2019/9/17/公司点餐.jpg" method="post" id="form"></form>
    <input type="button" id="download" value="下载文件" />
    <hr>
</body>
</html>
<script src="/Content/Js/jquery-2.0.3.min.js"></script>
<script>
    //下载
    $("#download").click(function () {
        var form = $("#form");
        form.submit();
    });
</script>